import React from 'react';
import { Button } from 'antd-mobile'
const Input =(props) => {
  console.log('input的props===', props);
  return (
    <div className="form-group">
      <label>
        新任务
      </label>
      <input type="text" className="form-control" id="listItemInput" placeholder="添加新任务" onChange={props.onChange} value={props.inputValue}/>
      <Button type="primary" size="md" onClick={props.onSubmit}>提交</Button>
    </div>
  );
}
export default Input;
